package ar.edu.unq.main;

import org.apache.wicket.Page;
import org.apache.wicket.authentication.AuthenticatedWebApplication;
import org.apache.wicket.authentication.AuthenticatedWebSession;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;

import ar.edu.unq.wannaplay.Home;
import ar.edu.unq.wannaplay.WPPage;

public class RunApp extends AuthenticatedWebApplication {

    @Override
    public void init() {
        MounterURL aMounterURL = new MounterURL(this);
        this.addComponentInstantiationListener(new SpringComponentInjector(this));
        aMounterURL.mount("home", Home.class, "");
    }

    @Override
    public Class<? extends Page> getHomePage() {
        return WPPage.class;
    }

    @Override
    protected Class<? extends AuthenticatedWebSession> getWebSessionClass() {
        return WebSession.class;
    }

    @Override
    protected Class<? extends WebPage> getSignInPageClass() {
        return WPPage.class;
    }
}
